<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head(title,links,scripts,styles)">
    <title th:text="${title}"></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="renderer" content="webkit" />
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-Control" content="no-store">
    <meta name="author" content="wonderful wuketidai@foxmail.com">
    <link rel="shortcut icon" th:href="${session.basePath}+'/resource/ico/logo/favicon.ico'" />
    <link rel="BOOKMARK" th:href="${session.basePath}+'/resource/ico/logo/favicon.ico'" />
    <style>
        @media screen and (max-width: 1500px){
        }
    </style>

    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/wdfjslib/css/wdfProgress.css'"/>
    <link rel="SHORTCUT ICON" th:href="${session.basePath}+'/resource/ico/logo/favicon.ico'">
    <link rel="BOOKMARK" th:href="${session.basePath}+'/resource/ico/logo/favicon.ico'">
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/css/project.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/wdfjslib/css/page.css'" type="text/css">

    <!--begin::基础样式 -->

    <!--end::基础样式 -->
    <!--begin::页面样式 -->
    <!--<link rel="stylesheet" type="text/css" th:each="cssPath,status:${#strings.setSplit(cssPaths,',')}" th:href="@{${cssPath}}" />-->
    <!--end::页面样式 -->
    <th:block th:if="${links}!=null">
        <th:block th:replace="${links}"/>
    </th:block>
    <th:block th:if="${styles}!=null">
        <th:block th:replace="${styles}"/>
    </th:block>
    <script type="text/javascript" th:inline="javascript">
        /*<![CDATA[*/
        var basePath=/*[[${session.basePath}]]*/   --获取session中的值
        /*]]>*/
        /*<![CDATA[*/
        var userObj=/*[[${session.User}]]*/   --获取session中的值
        /*]]>*/

        /*<![CDATA[*/
        var fileServerPath=/*[[${session.fileServerPath}]]*/   --获取session中的值
        /*]]>*/
        //var fileServerPath = "http://172.16.1.227:8080";
        //var fileServerPath = "http://121.36.173.210:8081";

        var userId ="${sessionScope.User.id}";
        var userName ="${sessionScope.User.name}";
        var userDeptId = "${sessionScope.User.department.id}";
        var userDeptName = "${sessionScope.User.department.name}";
        var userCurrentProjectId ="${sessionScope.User.userCurrentProjectId}";

        var userCurOrgIDs = "${sessionScope.User.userOrgIDS}";
        var userCurRoleIDs = "${sessionScope.User.userRoleIDS}";

        var APPBASE = '<%=basePath%>/';
    </script>


    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/jquery/jquery-1.7.2.min.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/wdfjslib/wdfgrid.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/ztree/zTree3.1/jquery.ztree.core-3.1.min.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/jquery/jqueryMd5.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/my97/WdatePicker.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/wdfjslib/wdfPanel.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/wdfjslib/wdfValidation.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/wdfjslib/wdfSel.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/wdfjslib/wdfTab.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/commonJs/comSel.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/jqueryArea/2.4.0/jquery.PrintArea.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/commonJs/dateFormat.js'"></script>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/wdfjslib/css/wdfSel.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/wdfjslib/css/wdfGridCss.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/wdfjslib/css/wdfGridCss4.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/wdfjslib/css/gridSearchBar.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/wdfjslib/css/wdfPanel.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/wdfjslib/css/wdfValidation.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/wdfjslib/css/wdfTab.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/css/listStyle.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/ztree/zTree3.1/css/zTreeStyle/zTreeStyle.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/jqueryUI/jquery-ui-1.9.2.custom/css/smoothness/jquery-ui-1.9.2.custom.css'" type="text/css">
    <!--<link rel="stylesheet" th:href="${session.basePath}+'/pages/imp/deviceRunTimeCheck/css/battery.css'"/>-->

    <script type="text/javascript" th:src="${session.basePath}+'/pages/imp/base/js/constant.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/commonJs/config.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/pagination/jquery.pagination.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/wdfjslib/wdfProgress.js'"></script>
    <!--<script type="text/javascript" th:src="${session.basePath}+'/resource/download/js/download.js'"></script>-->
    <script type="text/javascript" th:src="${session.basePath}+'/pages/base/js/projectSearchBar.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/pages/base/js/base.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/pages/imp/base/js/statusFormat.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/wdfjslib/tableWidthResize.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/pages/base/js/formatUtil.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/pages/imp/base/js/formGenerator.js?v=0.0.9'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/pages/imp/base/js/base.js?v=0.0.3.4'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/pages/imp/base/js/gridUtils.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/pages/imp/base/js/constant.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/pages/imp/base/js/selectUrl.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/laydate/laydate.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/layer/layer.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/jquery-validation/jquery.validate.min.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/jquery-validation/localization/messages_zh.js'"></script>
    <script type="text/javascript">

        function getBrowserInfo(){
            var userAgent = navigator.userAgent.toLowerCase();
            // Figure out what browser is being used
            $.browser = {
                version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [])[1],
                safari: /webkit/.test( userAgent ),
                opera: /opera/.test( userAgent ),
                msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
                mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
            };
        }
        //如果jquery版本大于1.9请执行此方法
        getBrowserInfo();

        /*var ajaxindex = 0;//所有ajax请求出现超时+1
        //处理全局ajax请求，超时之后跳转 yuanp
        $(document).ajaxComplete(function(event,xhr,options){
            var responseText =  xhr.responseText;
            if(responseText.indexOf("您还未登录") != -1){
                ajaxindex += 1;
            }
            if(ajaxindex ==1){//只要发生第一次超时，将直接跳转到登录页面
                alert("您还未登录或登陆超时，请先登录！");
                parent.location.href = basePath;
            }
        });
        if (userObj == null ){
            alert("您还未登录或登陆超时，请先登录！");
            parent.location.href = basePath;
        }*/

    </script>
    <th:block th:if="${scripts}!=null">
        <th:block th:replace="${scripts}"/>
    </th:block>
</head>
<body>
</body>
</html>